package com.island.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.island.model.ActionColumn;
import com.pollexsoft.base.dao.BaseHibernateDao;

@Repository
public class ActionColumnDao extends  BaseHibernateDao<ActionColumn, java.lang.String> {

	/**
	 * 查询全部权限分栏
	 * @return
	 */
	public List<ActionColumn> findAll(){
		return find("from ActionColumn", new Object[]{});
	}
	
	/**
	 * 新建一个权限分栏
	 * @param ActionColumn
	 */
	public void insertActionColumn(ActionColumn actionColumn){
		this.insert(actionColumn);
	}
	
	/**
	 * 根据ID删除
	 * @param id
	 */
	public void delActionColumn(int id){
		this.delete("delete from ActionColumn where actionColumnID=?", id);
	}
	
	/**
	 * 修改权限分栏信息
	 * @param ActionColumn
	 */
	public void updateActionColumn(ActionColumn actionColumn){
		this.update(actionColumn);
	}
}
